package cz.byteworks.sandbox.html5.newsbox.exception;

import cz.byteworks.sandbox.html5.newsbox.dao.RepositoryType;

public class RepositoryException extends Exception {

    private static final long serialVersionUID = -8976400481893200914L;
    
    private RepositoryType repositoryType;
    
    public RepositoryException(RepositoryType repositoryType) {
        this(repositoryType, null, null);
    }
    
    public RepositoryException(RepositoryType repositoryType, String message) {
        this(repositoryType, message, null);
    }
    
    public RepositoryException(RepositoryType repositoryType, Throwable cause) {
        this(repositoryType, null, cause);
    }
    
    public RepositoryException(RepositoryType repositoryType, String message, Throwable cause) {
        super(message, cause);
        this.repositoryType = repositoryType;
    }

    public RepositoryType getRepositoryType() {
        return repositoryType;
    }

}
